(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 3.0,
MathReader 3.0, or any compatible application. The data for the notebook 
starts with the line of stars above.

To get the notebook into a Mathematica-compatible application, do one of 
the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the 
word CacheID, otherwise Mathematica-compatible applications may try to 
use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info@wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from 
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[     13277,        586]*)
(*NotebookOutlinePosition[     14129,        616]*)
(*  CellTagsIndexPosition[     14085,        612]*)
(*WindowFrame->Normal*)



Notebook[{
Cell["Mathematica", "Subtitle",
  Evaluatable->False,
  CellHorizontalScrolling->False,
  TextAlignment->Center,
  AspectRatioFixed->True,
  FontFamily->"Times",
  FontSize->36,
  FontWeight->"Bold",
  FontSlant->"Italic",
  Background->GrayLevel[1]],

Cell[TextData["Arithmetic, Algebraic,\nand Logical Operations"], "Title",
  Evaluatable->False,
  CellHorizontalScrolling->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell["MATH 5037", "Subtitle",
  Evaluatable->False,
  CellHorizontalScrolling->False,
  TextAlignment->Center],

Cell[CellGroupData[{

Cell[TextData["Arithmetic Operations"], "Section",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell[TextData["Clear[\"Global`*\"]"], "Input",
  PageWidth->Infinity,
  FontFamily->"Courier New",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell[CellGroupData[{

Cell[TextData["Tutorial"], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
On NEXTSTEP:
   /LocalLibrary/Mathematica/Notebooks/CalculatorOperations.ma\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["\<\
On Windows NT:
   \\\\BIRD\\mathematica\\notebook\\Calculat.ma\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Open  ]],

Cell[CellGroupData[{

Cell["Operators", "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Addition \t\t\t+ 
Subtraction \t\t\t-
Multiplication \t\t\t* or  \"space\"
Division\t\t \t/
Exponentiation \t\t^
Matrix Multiply\t\t.
n-factorial\t\t\tn!\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["Algebraic Relations"], "Section",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Less Than \t\t\t<
Less Than or Equal\t\t<=
Greater Than\t\t\t>
Greater Than or Equal\t\t>=
Set \t\t\t\t=
SetDelayed\t\t\t:=
Replace\t\t\t->
ReplaceDelayed\t\t:>
Equivalent\t\t\t==
Not Equivalent \t\t!=\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["Logical Operations"], "Section",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
And \t\t&&
Or \t\t||
Not \t\t!\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["Making Definitions"], "Section",
  Evaluatable->False,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell[TextData[
"Replacement and assignment make temporary and permanent definitions, \
respectively."], "Text",
  Evaluatable->False],

Cell[CellGroupData[{

Cell["Replacement", "Subsection",
  Evaluatable->False,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Replacement applies a transformation rule to a specific expression, \
representing a temporary definition.
       expr  /.  lhs -> rhs\
\>", "Text",
  Evaluatable->False],

Cell["x^2 + 3x*y + y /. {x -> 1 , y -> 2}", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["x + y^2 /. {x -> 1+a , y -> b}", "Input",
  PageWidth->Infinity],

Cell["x + y  \t\t\t(* replacement was not permanent *)", "Input",
  PageWidth->Infinity],

Cell["?x", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]],

Cell["?y", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]]
}, Open  ]],

Cell[CellGroupData[{

Cell[TextData["Assignment"], "Subsection",
  Evaluatable->False,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Assignment defines a transformation rule that is applied whenever \
possible, representing a permanent definition.
       lhs = rhs\
\>", "Text",
  Evaluatable->False,
  Background->GrayLevel[1]],

Cell["\<\
x = 1+a;
y = b;\
\>", "Input",
  PageWidth->Infinity],

Cell["x + y", "Input",
  PageWidth->Infinity],

Cell["?x", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]],

Cell["?y", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["Clearing Values and Removing Variables"], "Section",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell[CellGroupData[{

Cell["Clear", "Section",
  Evaluatable->False],

Cell["\<\
Clear - clears a value assigned to a symbol, but the symbol is \
still known in the symbol table.\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["\<\
x=3    \t\t(* permanent assignment *)
?x
x\
\>", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]],

Cell["\<\
y=5    \t\t(* permanent assignment *)
?y
y\
\>", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]],

Cell["\<\
Clear[x]  \t(* clear the assignment *)
?x
x\
\>", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["\<\
y = .      \t(* alternative syntax *)
?y
y\
\>", "Input",
  PageWidth->Infinity],

Cell[TextData[
"You should start all notebooks by clearing all symbols in the Global context \
(the user-defined context)!  If you don't, some symbols have values left from \
an earlier notebook."], "Text",
  Evaluatable->False],

Cell["Clear[\"Global`*\"]", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]],

Cell["?Global`*", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]]
}, Open  ]],

Cell[CellGroupData[{

Cell["Remove", "Section",
  Evaluatable->False],

Cell["\<\
Remove - removes the symbol completely from the symbol table so \
that it is no longer recognized by Mathematica.\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["\<\
Remove[x,y]
?x\
\>", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]],

Cell["?y", "Input",
  PageWidth->Infinity,
  Background->GrayLevel[1]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["Special Constants"], "Section",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell[" E, Pi, I, Degree, GoldenRatio, Infinity, etc.", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["The \"N\" Function"], "Section",
  Evaluatable->False,
  PageBreakAbove->True,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
N[expr] gives the numerical value of expr.
N[expr, n] does computations to n-digit precision.\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["N[1000!]", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["N[Pi,800]", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["Some Intrinsic Functions"], "Section",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Abs[expr], Sin[expr], Cosh[expr], Exp[expr], Log[expr], \
Log[base,expr], ArcSin[expr], BesselJ[order,z], Random[type,range], \
FactorInteger[n], LegendreP[n,x],Beta[a,b], Gamma[z], Erf[x], \
Hypergeometric0F1[a,z], Zeta[s],...\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell[TextData["Sin[Pi/4]"], "Input",
  PageWidth->Infinity]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData["Precision and Accuracy"], "Section",
  Evaluatable->False,
  PageBreakAbove->True,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->24,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Precision or relative error is the total number of significant \
digits.
Accuracy is the number of digits to the right of the decimal point. Accuracy \
can be negative.\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell[CellGroupData[{

Cell[TextData["Low Precision  "], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Low precision calculations use the computer's floating point \
hardware.\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["{Precision[0.01],Accuracy[0.01]}", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["{Precision[100.],Accuracy[100.]}", "Input",
  PageWidth->Infinity],

Cell["{Precision[10.^18],Accuracy[10.^18]}", "Input",
  PageWidth->Infinity],

Cell["{Precision[10.^-18],Accuracy[10.^-18]}", "Input",
  PageWidth->Infinity]
}, Open  ]],

Cell[CellGroupData[{

Cell[TextData["High Precision"], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
High precision calculations use Mathematica's floating point \
software.\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["{Precision[N[3/2,40]],Accuracy[N[3/2,40]]}", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["{Precision[N[10^-18,40]],Accuracy[N[10^-18,40]]}", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Open  ]],

Cell[CellGroupData[{

Cell[TextData["Infinite Precision"], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["\<\
Infinite precision calculations are exact and do not include a \
decimal point.\
\>", "Text",
  Evaluatable->False,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["{Precision[3/2],Accuracy[3/2]}", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Open  ]],

Cell[CellGroupData[{

Cell[TextData["Rationalize and Chop"], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True,
  FontFamily->"Arial",
  FontSize->22,
  FontWeight->"Bold",
  FontColor->GrayLevel[0],
  Background->GrayLevel[1]],

Cell["Rationalize[1.3]", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]],

Cell["Chop[10.0^-14]", "Input",
  PageWidth->Infinity,
  AspectRatioFixed->True,
  Background->GrayLevel[1]]
}, Open  ]]
}, Closed]]
},
FrontEndVersion->"NeXT 3.0",
ScreenRectangle->{{0, 1053}, {0, 832}},
WindowToolbars->{},
CellGrouping->Manual,
WindowSize->{520, 600},
WindowMargins->{{Automatic, 201}, {Automatic, 15}},
PrivateNotebookOptions->{"ColorPalette"->{RGBColor, -1}},
ShowCellLabel->True,
ShowCellTags->False,
RenderingOptions->{"ObjectDithering"->True,
"RasterDithering"->False}
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of 
the file.  The cache data will then be recreated when you save this file 
from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1709, 49, 250, 9, 63, "Subtitle"],
Cell[1962, 60, 180, 4, 136, "Title"],
Cell[2145, 66, 110, 3, 51, "Subtitle"],

Cell[CellGroupData[{
Cell[2280, 73, 214, 7, 57, "Section"],
Cell[2497, 82, 191, 6, 34, "Input"],

Cell[CellGroupData[{
Cell[2713, 92, 204, 7, 52, "Subsection"],
Cell[2920, 101, 175, 6, 46, "Text"],
Cell[3098, 109, 162, 6, 46, "Text"]
}, Open  ]],

Cell[CellGroupData[{
Cell[3297, 120, 195, 7, 52, "Subsection"],
Cell[3495, 129, 253, 11, 126, "Text"]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{
Cell[3797, 146, 212, 7, 37, "Section"],
Cell[4012, 155, 301, 14, 174, "Text"]
}, Closed]],

Cell[CellGroupData[{
Cell[4350, 174, 211, 7, 37, "Section"],
Cell[4564, 183, 130, 7, 62, "Text"]
}, Closed]],

Cell[CellGroupData[{
Cell[4731, 195, 185, 6, 37, "Section"],
Cell[4919, 203, 133, 3, 30, "Text"],

Cell[CellGroupData[{
Cell[5077, 210, 171, 6, 52, "Subsection"],
Cell[5251, 218, 180, 5, 62, "Text"],
Cell[5434, 225, 129, 3, 24, "Input"],
Cell[5566, 230, 70, 1, 24, "Input"],
Cell[5639, 233, 88, 1, 24, "Input"],
Cell[5730, 236, 70, 2, 24, "Input"],
Cell[5803, 240, 70, 2, 24, "Input"]
}, Open  ]],

Cell[CellGroupData[{
Cell[5910, 247, 180, 6, 52, "Subsection"],
Cell[6093, 255, 205, 6, 62, "Text"],
Cell[6301, 263, 63, 4, 36, "Input"],
Cell[6367, 269, 45, 1, 24, "Input"],
Cell[6415, 272, 70, 2, 24, "Input"],
Cell[6488, 276, 70, 2, 24, "Input"]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{
Cell[6607, 284, 231, 7, 37, "Section"],

Cell[CellGroupData[{
Cell[6863, 295, 46, 1, 52, "Section"],
Cell[6912, 298, 197, 6, 30, "Text"],
Cell[7112, 306, 118, 6, 48, "Input"],
Cell[7233, 314, 118, 6, 48, "Input"],
Cell[7354, 322, 145, 7, 48, "Input"],
Cell[7502, 331, 90, 5, 48, "Input"],
Cell[7595, 338, 228, 4, 46, "Text"],
Cell[7826, 344, 87, 2, 24, "Input"],
Cell[7916, 348, 77, 2, 24, "Input"]
}, Open  ]],

Cell[CellGroupData[{
Cell[8030, 355, 47, 1, 52, "Section"],
Cell[8080, 358, 213, 6, 46, "Text"],
Cell[8296, 366, 90, 5, 36, "Input"],
Cell[8389, 373, 70, 2, 24, "Input"]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{
Cell[8508, 381, 210, 7, 37, "Section"],
Cell[8721, 390, 138, 3, 30, "Text"]
}, Closed]],

Cell[CellGroupData[{
Cell[8896, 398, 235, 8, 37, "Section",
  PageBreakAbove->True],
Cell[9134, 408, 193, 6, 46, "Text"],
Cell[9330, 416, 102, 3, 24, "Input"],
Cell[9435, 421, 103, 3, 24, "Input"]
}, Closed]],

Cell[CellGroupData[{
Cell[9575, 429, 217, 7, 37, "Section"],
Cell[9795, 438, 327, 8, 62, "Text"],
Cell[10125, 448, 59, 1, 24, "Input"]
}, Closed]],

Cell[CellGroupData[{
Cell[10221, 454, 239, 8, 37, "Section",
  PageBreakAbove->True],
Cell[10463, 464, 268, 8, 46, "Text"],

Cell[CellGroupData[{
Cell[10756, 476, 211, 7, 52, "Subsection"],
Cell[10970, 485, 172, 6, 30, "Text"],
Cell[11145, 493, 126, 3, 24, "Input"],
Cell[11274, 498, 72, 1, 24, "Input"],
Cell[11349, 501, 76, 1, 24, "Input"],
Cell[11428, 504, 78, 1, 24, "Input"]
}, Open  ]],

Cell[CellGroupData[{
Cell[11543, 510, 210, 7, 52, "Subsection"],
Cell[11756, 519, 172, 6, 30, "Text"],
Cell[11931, 527, 136, 3, 24, "Input"],
Cell[12070, 532, 142, 3, 24, "Input"]
}, Open  ]],

Cell[CellGroupData[{
Cell[12249, 540, 214, 7, 52, "Subsection"],
Cell[12466, 549, 179, 6, 30, "Text"],
Cell[12648, 557, 124, 3, 24, "Input"]
}, Open  ]],

Cell[CellGroupData[{
Cell[12809, 565, 216, 7, 52, "Subsection"],
Cell[13028, 574, 110, 3, 24, "Input"],
Cell[13141, 579, 108, 3, 24, "Input"]
}, Open  ]]
}, Closed]]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)

